package me.boot.gen.table.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import me.boot.gen.table.annotation.ColumnComment;
import me.boot.gen.table.annotation.IsAutoIncrement;

import java.io.Serializable;

@Getter
@Setter
public abstract class BaseEntity implements Serializable {
    /**
     * 自动生成id【Long自增】
     */
    @IsAutoIncrement
    @ColumnComment("唯一编码")
    @ApiModelProperty("唯一编码")
    @TableId(type = IdType.AUTO)
    protected Long id;
}
